<?php
$this->breadcrumbs=array(
	'考试'=>array('index'),
	'管理列表',
);

$this->menu=array(
	array('label'=>'新增', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('exams-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'exams-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		array('name'=>'exams_name'),
		array('name'=>'exams_times','filter'=>false),
		array('name'=>'exams_memo','filter'=>false),
		array(
			'name'=>'exams_statuts',
			'type'=>'raw',
			'value'=>'CHtml::link(CHtml::encode($data->getStateText()), array("admin","examId"=>"$data->exams_id"))',
			'filter'=>$model->getStateArr(),
		),
		/*
		'exams_id',
		'exams_creater_id',
		'exams_create_time',
		'exams_edit_tims',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
